Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ASAN: avoid arena mode with range deletions #2399

Closed
wants to merge 1 commit into from

Conversation

ajkr
Copy link
Contributor

@ajkr ajkr commented Jun 2, 2017

The range deletion meta-block iterators weren't getting cleaned up properly since they don't support arena allocation. I didn't implement arena support since, in the general case, each iterator is used only once and separately from all other iterators, so there should be no benefit to data locality.

Anyways, this diff fixes up #2370 by treating range deletion iterators as non-arena-allocated.

@facebook-github-bot
Copy link
Contributor

@ajkr has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@ajkr ajkr requested review from lightmark, yiwu-arbug and siying June 2, 2017 03:54
@ajkr ajkr changed the title Fix TSAN: avoid arena mode with range deletions Fix ASAN: avoid arena mode with range deletions Jun 2, 2017
benesch added a commit to benesch/cockroach that referenced this pull request Jul 7, 2017
…ault

985b5d7 imported a patch that fixed one IngestExternalFile segfault, but
it appears there is another.  Import "Fix TSAN: avoid arena mode with
range deletions" [0], which seems to the trick. This patch has landed on
master but is not in 5.5.1.

[0]: facebook/rocksdb#2399

Fixes cockroachdb#16922.
benesch pushed a commit to cockroachdb/rocksdb that referenced this pull request Jul 7, 2017
Summary:
The range deletion meta-block iterators weren't getting cleaned up properly since they don't support arena allocation. I didn't implement arena support since, in the general case, each iterator is used only once and separately from all other iterators, so there should be no benefit to data locality.

Anyways, this diff fixes up facebook#2370 by treating range deletion iterators as non-arena-allocated.
Closes facebook#2399

Differential Revision: D5171119

Pulled By: ajkr

fbshipit-source-id: bef6f5c4c5905a124f4993945aed4bd86e2807d8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants